package com.dyypdadmin.service.impl;

import com.dyypdadmin.dao.AppointmentRecordsDetailDao;
import com.dyypdadmin.pojo.vo.AppointmentRecordsDetail;
import com.dyypdadmin.pojo.vo.CategoriesCount;
import com.dyypdadmin.service.AppointmentRecordsDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AppointmentRecordsDetailServiceImpl implements AppointmentRecordsDetailService {
    @Autowired
    private AppointmentRecordsDetailDao appointmentRecordsDetailDao;
    @Override
    public List<AppointmentRecordsDetail> getAll() {
        return appointmentRecordsDetailDao.getAll();
    }

    @Override
    public List<AppointmentRecordsDetail> getAllByUserId(Integer user_pkid) {
        return appointmentRecordsDetailDao.getAllByUserId(user_pkid);
    }

    @Override
    public List<AppointmentRecordsDetail> getAppointmentListByAppointmentTime(String appointment_time) {
        return appointmentRecordsDetailDao.getAppointmentListByAppointmentTime(appointment_time);
    }

    @Override
    public List<AppointmentRecordsDetail> getAppointmentListByUsername(String username) {
        return appointmentRecordsDetailDao.getAppointmentListByUsername(username);
    }

    @Override
    public List<CategoriesCount> getCountByServiceType() {
        return appointmentRecordsDetailDao.getCountByServiceType();
    }

    @Override
    public List<AppointmentRecordsDetail> getWaitServeByUserId(Integer user_pkid) {
        return appointmentRecordsDetailDao.getWaitServeByUserId(user_pkid);
    }

    @Override
    public List<AppointmentRecordsDetail> getCompletedByUserId(Integer user_pkid) {
        return appointmentRecordsDetailDao.getCompletedByUserId(user_pkid);
    }

    @Override
    public List<AppointmentRecordsDetail> getIncompleteByUserId(Integer user_pkid) {
        return appointmentRecordsDetailDao.getIncompleteByUserId(user_pkid);
    }

    @Override
    public int getTodayAppointmentsCount() {
        return appointmentRecordsDetailDao.getTodayAppointmentsCount();
    }
}
